import json
import os


def load_json(file_path: str) -> dict:
    """
    Load a JSON file and return its content as a dictionary.

    Args:
        file_path (str): The path to the JSON file.

    Returns:
        dict: The content of the JSON file.
    """
    if not os.path.exists(file_path):
        raise FileNotFoundError(f"The file {file_path} does not exist.")

    with open(file_path, "r", encoding="utf-8", errors="ignore") as file:
        data = json.load(file)

    return data
